package com.zhenwei.zscm.mappings;

import com.zhenwei.zscm.entity.ExceptionLogEntity;
import com.zhenwei.zscm.entity.LogEntity;
import com.zhenwei.zscm.model.dto.log.ExceptionLogDTO;
import com.zhenwei.zscm.model.dto.log.LogDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface LogMapping {
    LogMapping INSTANCE = Mappers.getMapper(LogMapping.class);

    ExceptionLogDTO entity2Dto(ExceptionLogEntity entity);
    LogDTO entity2Dto(LogEntity entity);
}
